package com.woniuxy02;

/**
 * @author 作者
 * @create 2025-07-23 10:38
 */
public class Test01 {
    public static void main(String[] args) {
        Cat cat1 = new Cat("cat1",1,100);
        Cat cat2 = new Cat("cat2",3,80);
//        System.out.println(cat1.showInfo());
        //com.woniuxy02.Cat@378bf509
        //  全限定名@根据内存地址计算的一个整数
        System.out.println(cat1);
        System.out.println(cat1.toString());
        System.out.println(cat2);
        System.out.println(cat2.toString());

        Dog dog1 = new Dog("dog1",2,90);
//        System.out.println(dog1.showInfo());
        //com.woniuxy02.Dog@2d98a335
        System.out.println(dog1);
        System.out.println(dog1.toString());

    }
}
